package com.mfc.education.service.cms.feign;

import com.mfc.education.common.base.result.R;
import com.mfc.education.service.cms.feign.fallback.OssFileServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author mfc
 * @since 2021/9/20
 */
// 所在主机(微服务)
@FeignClient(value = "service-oss",fallback = OssFileServiceFallBack.class)
@Service
public interface OssFileService {

    @DeleteMapping("/admin/oss/file/remove")
    R removeFile(@RequestBody String url);
}
